<template>
  <div class="app">
    <h2>你好欢迎来到{{school}}，我是App组件</h2>
    <button @click="welcome">点我欢迎你</button>
    <hr>
    <Person></Person>
    <hr>
    <School></School>
  </div>
</template>

<script>
  import School from './components/School.vue'
  import Person from './components/Person.vue'

  export default {
    name:'App',
    components:{Person,School},
    data() {
      return {
        school:'尚硅谷'
      }
    },
    methods:{
      welcome(){
        alert('你好啊，欢迎你来到北京尚硅谷')
      }
    }
  }
</script>

<style>
  .app {
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>